﻿using Md.Api.Model.Web.MdBanner.Request;
using Md.Dapper.Repositories.Md;

namespace Md.Api.Service.Web.MdBanner;
/// <summary>
/// 通过编号获取轮播图服务
/// </summary>
public class GetMdBannerByIdWebService : ApiBase<RequestGetMdBannerByIdWebModel>
{
    /// <summary>
    /// 轮播图仓储
    /// </summary>
    public MdBannerRep mdBannerRep { get; set; }
    /// <summary>
    /// 执行
    /// </summary>
    protected override void ExecuteMethod()
    {
        var res = mdBannerRep.GetMdBannerById(Parameter.BannerId);

        Result.Data = res;
    }
}
